package tianrun.ziguan.api.calculate.config.service.asset.module.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tianrun.ziguan.api.calculate.config.dao.TAssetUsageAnalysisModuleMapper;
import tianrun.ziguan.api.calculate.config.dto.request.TAssetUsageAnalysisModuleVO;
import tianrun.ziguan.api.calculate.config.entity.TAssetUsageAnalysisModule;
import tianrun.ziguan.api.calculate.config.service.asset.module.ITAssetUsageAnalysisModuleService;
import tianrun.ziguan.api.calculate.config.utils.CollectionUtil;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;

/**
 * @author zhaoqi
 */
@Service
public class TAssetUsageAnalysisModuleServiceImpl extends ServiceImpl<TAssetUsageAnalysisModuleMapper, TAssetUsageAnalysisModule> implements ITAssetUsageAnalysisModuleService {

    @Override
    public List<TAssetUsageAnalysisModuleVO> listByCalAssetIds(Collection<Long> ids) {
        if (CollectionUtil.isEmpty(ids)) {
            return Collections.emptyList();
        }
        return baseMapper.listByCalAssetIds(ids);
    }
}
